﻿<%@ Page Title="Đăng nhập vào hệ thống" Language="C#" MasterPageFile="~/MasterPages/Users.Master" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="OnlineAuction.Guest.Login" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div>
        <div class="login">
            <table cellpadding="2" cellspacing="6" 
                style="width: 100%; text-align: left; height: 249px;">
                <tr>
                    <th colspan="2">
                        <asp:Label ID="Label4" runat="server" Font-Bold="True" Font-Size="20px" 
                            ForeColor="#3333FF" Text="Đăng nhập"></asp:Label>
                    </th>
                </tr>
                <tr>
                    <td style="width: 219px; text-align: left; height: 35px;">
                        <asp:Label ID="Label6" runat="server" Text="Tên đăng nhập: "></asp:Label>
                    </td>
                    <td style="height: 35px">
                        <asp:TextBox ID="txtUsername" runat="server" Height="25px" Width="150px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                            ControlToValidate="txtUsername"></asp:RequiredFieldValidator>
                        <asp:CustomValidator ID="CustomValidator1" runat="server" 
                            ControlToValidate="txtUsername" 
                            onservervalidate="CustomValidator1_ServerValidate"></asp:CustomValidator>
                        <asp:CustomValidator ID="CustomValidator3" runat="server" 
                            ControlToValidate="txtUsername" 
                            onservervalidate="CustomValidator3_ServerValidate"></asp:CustomValidator>
                    </td>
                </tr>
                <tr>
                    <td style="width: 219px; text-align: left">
                        <asp:Label ID="Label2" runat="server" Text="Mật khẩu: "></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtPassword" runat="server" Height="25px" TextMode="Password" 
                            Width="150px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                            ControlToValidate="txtPassword"></asp:RequiredFieldValidator>
                        <asp:CustomValidator ID="CustomValidator2" runat="server" 
                            ControlToValidate="txtPassword" 
                            onservervalidate="CustomValidator2_ServerValidate"></asp:CustomValidator>
                        <asp:CustomValidator ID="CustomValidator4" runat="server" 
                            ControlToValidate="txtPassword" 
                            onservervalidate="CustomValidator4_ServerValidate"></asp:CustomValidator>
                    </td>
                </tr>
                <tr>
                    <td style="width: 219px; text-align: left">
                        <asp:Label ID="Label3" runat="server" Text="Home server:"></asp:Label>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlServers" runat="server" DataSourceID="LinqDataSource1" 
                            DataTextField="ServerDescription" DataValueField="ServerDescription" 
                            Height="25px" Width="150px">
                        </asp:DropDownList>
                        <asp:LinqDataSource ID="LinqDataSource1" runat="server" 
                            ContextTypeName="OnlineAuction.DauGiaDataContext" GroupBy="ServerDescription" 
                            Select="new (key as ServerDescription, it as Servers)" TableName="Servers">
                        </asp:LinqDataSource>
                    </td>
                </tr>
                <tr>
                    <td style="height: 27px; text-align: right;">
                        <asp:LinkButton ID="LinkButton2" runat="server" 
                            PostBackUrl="~/Guest/DangKyTaiKhoan.aspx">Đăng ký</asp:LinkButton>
                        <br />
                        <asp:LinkButton ID="LinkButton3" runat="server" PostBackUrl="~/Default.aspx" 
                            CausesValidation="False">Về trang chủ</asp:LinkButton>
                    </td>
                    <td style="height: 27px; margin-left: 40px;">
                        <asp:Button ID="btnDangNhap" runat="server" Font-Bold="True" Font-Size="1em" 
                            Height="31px" onclick="btnDangNhap_Click" Text="Đăng nhập" Width="106px" />
                    </td>
                </tr>
                <tr>
                    <td colspan="2" style="text-align: left">
                        <asp:Label ID="Label5" runat="server" Font-Bold="True" ForeColor="#FF3300"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" style="text-align: left">
                        <asp:ValidationSummary ID="ValidationSummary1" runat="server" 
                            HeaderText="Bạn nhập sai quy định. Xin hãy nhập lại!" />
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        &nbsp;</td>
                </tr>
            </table>
        </div>
</div>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
</asp:Content>


